# vowels:
# a
# e
# i
# o
# u

def translate(phrase):
    translation = ""
    for letter in phrase:
        if letter.lower() in "aeiou":  # this is a little hack
            # if letter() in "aeiouAEIOU":
            #     translation = translation + "g" # this works, but nor perfect
            if letter.islower():
                translation = translation + "g"
            else:
                translation = translation + "G"

        else:
            translation = translation + letter
    return translation


print(translate(input("Enter your phrase: ")))

# a for loop in combination with an if statements
